package com.cl.base.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ResultCode implements StatusCode {
    SUCCESS(0, "请求成功"),
    FAILED(1, "请求失败"),
    UNAME_PWD_ERROR(1001, "用户名或密码错误"),
    AUTHENTICATION_ERROR(1002, "认证失败，无法访问系统资源"),
    ACCESS_DENIED_ERROR(1003, "权限不足"),
    GENERATE_TOKEN_ERROR(1004, "创建token失败"),
    GET_USER_ERROR(1004, "获取用户信息失败"),
    RESPONSE_PACK_ERROR(9999, "response返回包装失败");

    private final int code;
    private final String msg;
}
